export class MemStores {

    static storage = {}

    static set(key, data) {
        MemStores.storage[key] = data
    }

    static get(key, init = []) {

        let data = MemStores.storage[key]
        if (!data) MemStores.storage[key] = []
        
        return data || MemStores.storage[key]
    }
}